import request from '../utils/Request'

export function pageList(params) {
  return request.fetch({
    url: 'shopOrder/page',
    method: 'get',
    params: params
  })
}

export function changeShopOrderStatus(data) {
  return request.fetch({
    url: 'shopOrder/changeStatus',
    method: 'post',
    data: { entity: data }
  })
}

export function getDetail(id) {
  return request.fetch({
    url: 'shopOrder/findDetail/' + id,
    method: 'get'
  })
}
